import React from 'react'
import { $pre } from '../../../../http/http';
import { Swiper } from 'antd-mobile'

export default function Banner(props) {
  let {banner}=props;
  return (
    
      <Swiper autoplay>
        {banner.map((item)=>{
          return (
            <Swiper.Item key={item.id}>
              <img src={$pre+item.img} alt="" />
            </Swiper.Item>
          );
        })}
        
      </Swiper>
    
  )
}




